import { Base } from '../utils/base.js';
class Company extends Base {
    constructor() {
        super();
    }
    delComment(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/delComment',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    getMyComment(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/getMyComment',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    mysendorder(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/mysendorder',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    saveComment(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/saveComment',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    getCompanyRegisterInit(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/getCompanyregisterinit',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    getCompanylist(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/getCompanylist',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    getAgentCompanylist(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/getAgentCompanylist',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    getSearchCompany(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/getSearchCompany',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    sendorderdetail(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/sendorderdetail',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    Savecompany(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/saveCompany',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    Login(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/doLogin',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    companycenter(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/companyCenter',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    companyjob(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/companyJob',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    companynote(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/companyNote',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    Invitenote(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/inviteNote',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    cancleJob(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/cancleJob',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    upJob(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/upJob',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    topJob(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/topJob',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }
    checkLogin(callback, params) {
        var that = this;
        var param = {
            url: 'addons/zpwxsys/v1.Company/checkLogin',
            type: 'post',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.request(param);
    }

    /*
      checkLogin(callback){
  
          var that =this;
  
          if(!wx.getStorageSync('companyid'))
          {
            
              wx.navigateTo({
                url: '/pages/companylogin/index',
              })
  
              
  
          }else{
              callback && callback();
          }
      }
    */

    uploadimg(callback, params) {
        var that = this;
        console.log(params);
        var param = {
            url: 'addons/zpwxsys/v1.Company/uploadImg',
            data: params,
            sCallback: function (data) {
                data = data;
                if (callback) {
                    callback(data);
                }
            }
        };
        this.requestuploadimg(param);
    }
}
export { Company };
